#include <bits/stdc++.h>

#define int long long

using namespace std;

void solve()
{
    int n;
    cin >> n;
    map<int,int> mp;
    for(int i = 1; i <= n; i++)
    {
        int x;
        cin >> x;
        mp[x] ++;
    }
    for(auto x : mp)
    {
        if(x.second >= 2)
        {
            cout << "Yes" << endl;   
            return;
        }
    }
    cout << "No" << endl;
}

signed main()
{
    int t;
    cin >> t;
    while(t --)
    {
        solve();
    }
}